<div class="dux-box">
    <div class="box-header ">
        <span class="uk-margin-right">订单号：{$info.order_no}</span>
        <span class="uk-margin-right">下单时间：{date('Y-m-d H:i:s', $info.order_create_time)}</span>
    </div>
    <div class="box-body">

        <div class="uk-flex">
            <div class="uk-flex-1">
                <div class="dux-info-list">
                    <dl>
                        <dt>收件人：</dt>
                        <dd class="uk-text-left">{$info.receive_name}</dd>
                    </dl>
                    <dl>
                        <dt>联系方式：</dt>
                        <dd class="uk-text-left">{$info.receive_tel}</dd>
                    </dl>
                    <dl>
                        <dt>收货地址：</dt>
                        <dd class="uk-text-left">
                            {$info.receive_province}{$info.receive_city}{$info.receive_region}{$info.receive_address}
                        </dd>
                    </dl>

                </div>
            </div>
            <div class="dux-info-list uk-width-medium">
                <dl>
                    <dt class="uk-text-right">商品合计：</dt>
                    <dd>￥{$info.order_price}</dd>
                </dl>
                <dl>
                    <dt class="uk-text-right">运费：</dt>
                    <dd>￥{$info.delivery_price}</dd>
                </dl>
                <dl>
                    <dt class="uk-text-right">优惠：</dt>
                    <dd>￥{$info.pay_discount}</dd>
                </dl>
                <!--loop{$info.pay_currency.exchange as $k => $v}-->
                <dl>
                    <dt class="uk-text-right">{$v.name}：</dt>
                    <dd>{$v.money}{$v.unit} 抵 {$v.deduct} 元</dd>
                </dl>
                <!--{/loop}-->
                <!--loop{$info.pay_currency.append as $k => $v}-->
                <dl>
                    <dt class="uk-text-right">{$v.name}：</dt>
                    <dd>{$v.money} {$v.unit}</dd>
                </dl>
                <!--{/loop}-->
            </div>
        </div>
        <hr>
        <div class="uk-flex">
            <div class="uk-flex-1 dux-info-list">
                <dl>
                    <dt>买家留言：</dt>
                    <dd class="uk-text-left">{$info.order_remark ? $info.order_remark : '无'}</dd>
                </dl>
            </div>
            <div class="dux-info-list uk-width-medium">
                <dl>
                    <dt class="uk-text-right">支付方式：</dt>
                    <dd>{$info.pay_type ? '在线支付' : '货到付款'}</dd>
                </dl>
                <dl>
                    <dt class="uk-text-right" style="padding-top: 5px;">应付：</dt>
                    <dd class="uk-text-danger uk-text-large">￥{$info.pay_price}</dd>
                </dl>
                <!--if{bccomp($info.refund_price, 0, 2) === 1}-->
                <dl>
                    <dt class="uk-text-right" >退款金额：</dt>
                    <dd class="uk-text-danger">￥{$info.refund_price}</dd>
                </dl>
                <!--{/if}-->
            </div>

        </div>
    </div>
</div>
<br>
<!--if{$takeInfo}-->

<div class="dux-box">
    <div class="box-header">
        商品自提
    </div>
    <div class="box-body">
        <div class="uk-flex">
            <div class="uk-flex-1">
                <div class="dux-info-list">
                    <dl>
                        <dt>自提点：</dt>
                        <dd class="uk-text-left">{$takeInfo.name}</dd>
                    </dl>
                    <dl>
                        <dt>电话：</dt>
                        <dd class="uk-text-left">{$takeInfo.tel}</dd>
                    </dl>
                    <dl>
                        <dt>营业时间：</dt>
                        <dd class="uk-text-left">{$takeInfo.start_time} ~ {$takeInfo.stop_time}</dd>
                    </dl>
                    <dl>
                        <dt>地址：</dt>
                        <dd class="uk-text-left">
                            {$takeInfo.receive_province}{$takeInfo.city}{$takeInfo.region}{$takeInfo.address}
                        </dd>
                    </dl>

                </div>
            </div>
            <div>
                <a href="http://apis.map.qq.com/uri/v1/geocoder?coord={$takeInfo.lat},{$takeInfo.lng}&referer=myapp" target="_blank" ><img src="http://apis.map.qq.com/ws/staticmap/v2/?center={$takeInfo.lat},{$takeInfo.lng}&zoom=14&size=160*120&maptype=roadmap&markers=size:large|color:0xFFCCFF|label:k|{$takeInfo.lat},{$takeInfo.lng}&key=DOZBZ-HP634-BLOUM-XYW4E-F4O7S-XZFPX" alt=""></a>
            </div>
        </div>
    </div>
</div>
<br>
<!--{/if}-->


<div class="dux-box">
    <div class="box-header  uk-clearfix">
        <div class="uk-float-left" style="padding-top: 5px;">{$info.status_data.name}</div>
        <div class="uk-float-right">
            <!--if{$deliveryInfo}-->
            <a href="{url('order/Order/delivery', ['order_no' => $info.order_no])}" class="uk-button uk-button-primary uk-button-small">查看物流</a>
            <!--{/if}-->
            {$info.status_data.html}
        </div>
    </div>
    <table class="uk-table  uk-table-responsive  uk-table-divider uk-table-middle dux-table  ">
        <thead>
        <th>商品</th>
        <th width="120" class="uk-text-center">数量</th>
        <th width="120" class="uk-text-center">优惠</th>
        <th width="120" class="uk-text-center">实付</th>
        <!--if{$info.status_data.action <> 'close' && $info.status_data.action <> 'pay' && $info.status_data.action <> 'parcel'}-->
        <th width="120" class="uk-text-center">售后</th>
        <!--{/if}-->
        </thead>

        <tbody>

        <?php $i=0; ?>
        <!--loop{$orderGoods as $k => $item}-->
        <?php $i++; ?>
        <tr>
            <td class="uk-text-middle">
                <div class="uk-float-left">
                    <a href="{$item.goods_url}" target="_blank"><img src="{$item.goods_image}" width="64"
                                                                     height="64"></a>
                </div>
                <div style="margin-left: 75px">
                    <div><a href="{$item.goods_url}" target="_blank" class="link">{$item.goods_name}</a>
                    </div>
                    <div class="dux-text-disabled">
                        <!--if{$item.goods_options }-->
                        <!--loop{$item.goods_options as $v}-->
                        {$v.name}: {$v.value}
                        <!--{/loop}-->
                        <!--{/if}-->
                    </div>

                    <div class="dux-text-disabled">￥{$item.goods_price}</div>


                </div>
            </td>

            <td class="uk-text-middle uk-text-center">
                {$item.goods_qty}
            </td>

            <td class="uk-text-middle uk-text-center">
                ￥{$item.price_discount}
            </td>
            <td class="uk-text-middle uk-text-center">
                ￥{$item.price_total}
            </td>
            <!--if{$info.status_data.action <> 'close' && $info.status_data.action <> 'pay' && $info.status_data.action <> 'parcel'}-->
            <td class="uk-text-middle uk-text-center" >
                <!--if{!$item.service_status}-->
                <p><a href="{url('order/refund/push', ['id' => $item.id])}">退款/退货</a></p>
                <!--elseif{$item.service_status == 1}-->
                <p>售后处理中</p>
                <!--elseif{$item.service_status == 2}-->
                <p>售后完成</p>
                <!--{/if}-->

                <!--if{$info.status_data.action == 'comment' || $info.status_data.action == 'complete'}-->
                <p>
                    <!--if{$item.comment_status}-->
                    <a href="{$item.goods_url}" target="_blank" class="uk-text-danger">已评价</a>
                    <!--{else}-->
                    <a href="{url('order/comment/push', ['id' => $item.id, 'action' => url('', ['order_no' => $info.order_no])])}"
                       class="uk-text-warning">评价商品</a>
                    <!--{/if}-->
                </p>
                <!--{/if}-->
            </td>
            <!--{/if}-->

        </tr>
        <!--{/loop}-->

        </tbody>
    </table>
</div>
<br>


<!--if{$invoiceInfo}-->
<div class="dux-box">
    <div class="box-header">
        商品发票
    </div>
    <div class="box-body">
        <div class="uk-flex">
            <div class="uk-flex-1">
                <div class="dux-info-list">
                    <dl>
                        <dt>发票类型：</dt>
                        <dd class="uk-text-left">{$invoiceInfo.type ? '企业' : '个人'}</dd>
                    </dl>
                    <dl>
                        <dt>发票抬头：</dt>
                        <dd class="uk-text-left">{$invoiceInfo.name} {$invoiceInfo.number ? $invoiceInfo.number : ''}</dd>
                    </dl>
                    <dl>
                        <dt>发票内容：</dt>
                        <dd class="uk-text-left">{$invoiceInfo.class_name}</dd>
                    </dl>
                </div>
            </div>
            <div>
                <a href="http://apis.map.qq.com/uri/v1/geocoder?coord={$takeInfo.lat},{$takeInfo.lng}&referer=myapp" target="_blank" ><img src="http://apis.map.qq.com/ws/staticmap/v2/?center={$takeInfo.lat},{$takeInfo.lng}&zoom=14&size=160*120&maptype=roadmap&markers=size:large|color:0xFFCCFF|label:k|{$takeInfo.lat},{$takeInfo.lng}&key=DOZBZ-HP634-BLOUM-XYW4E-F4O7S-XZFPX" alt=""></a>
            </div>
        </div>
    </div>
</div>
<!--{/if}-->
